Hi Hans and Hraban,
Thank you both for your remarks: indeed I am aware of the commands \m{} and
\dm{} in ConTeXt, but for my work with math stuff I use the usual dollar signs
for inline maths, since in this way it is easier for me to read the source on
the one hand, and and on the hand when
document.
Moreover you did not have a \stoptext in your file, and a math command
« \m » was not written correctly. Talking of math, I personnaly prefer
to enclose in-line math between dollar signs $, that is writing «
$\exists x \in H$ » instead of « \m{\exists x \in H} ».
Well, better stay
file, and a math command «
\m » was not written correctly. Talking of math, I personnaly prefer to
enclose in-line math between dollar signs $, that is writing « $\exists
x \in H$ » instead of « \m{\exists x \in H} ».
Well, better stay with the modern ConTeXt approach of \m{}.
Also, you can
»
was not written correctly. Talking of math, I personnaly prefer to enclose
in-line math between dollar signs $, that is writing « $\exists x \in H$ »
instead of « \m{\exists x \in H} ».
Also the way you write your text is somewhat « incorrect » (or as Mikael
Sundqvist would put it, « interesting »…), since
%% \CheckSum{924}
%% \CharacterTable
%% {Upper-case\A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case\a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits\0\1\2\3\4\5\6\7\
-mkiv manual, so I'm
asking whether this is supported behaviour or just a bug?
I would say that this is unsupported expected behaviour ;)
It is better not to use $ at all (except when using it as a dollar sign when
\asciimode is active).
\starttext
% All the same
\mathematics{math $text here
so
> I'm asking whether this is supported behaviour or just a bug?
I would say that this is unsupported expected behaviour ;)
It is better not to use $ at all (except when using it as a dollar sign when
\asciimode is active).
>
> \starttext
> % All the same
> \mathematics{math $text here$
(which
is then also kind of publishing a source). I'm also not sure what the
real role is of publishers: are there actually still real publishers
around anyway? As far as I can tell publishers haven't spent a dollar /
euro on innovation anyway, so all they can be is patient: I feel no
prompt reply!
The output Euro set! is printed always, it doesn't matter whether I put
EURO or DOLLAR first?!
Hi Geert,
my fault, the conditional should read:
\xmldoif{#1}{currency[position()==1 and contains(text(),'EURO')]}
{Euro set!}
I hope it works fine now.
Pablo
--
http
On 5/1/19 9:28 PM, Geert Verhaag wrote:
> Hoi Pablo,
>
> Thanks for your prompt reply!
>
> The output Euro set! is printed always, it doesn't matter whether I put
> EURO or DOLLAR first?!
Hi Geert,
my fault, the conditional should read:
\xmldoif{#1}{currency[position()==1
Hoi Pablo,
Thanks for your prompt reply!
The output Euro set! is printed always, it doesn't matter whether I put
EURO or DOLLAR first?!
Also I can't find any clue on the suggested page 49 of xml-mkiv.pdf
manual, sorry!
By the way, in my document it still doesn't seem to work!
I'm afraid
the Euro set be printed?!
>
> What's wrong here? The manual xml-mkiv.pdf doesn't give me any hint on
> how to make this work!
Hi Geert,
the syntax reads \xmldoif{#1}{lpath}{action}. So your conditional may read:
\xmldoif{#1}{currency[first() and contains(text(),'EURO')]}
{Euro set!}
le to do this by an appropriate setting of btxrendering,
>> without going into the BibTeX file?
>>
>> Thanks in advance for any help: OK
>
> First of all, don't put any such formatting in the BibTeX file: that is
> a LaTeX-style hack, and we have designed the ConTeX
to this. Say, for example that the title
contains mathematical symbols. One would be hard pressed not to include
dollar-sign delimiters and math syntax! Another example could be
"edition={second}" and "edition={2\high{nd}}". Of course, one could
introduce conversion sets (like for mo
itle
contains mathematical symbols. One would be hard pressed not to include
dollar-sign delimiters and math syntax! Another example could be
"edition={second}" and "edition={2\high{nd}}". Of course, one could
introduce conversion sets (like for months), but this gets co
he dataset should contain only data, and hacks should
be avoided.
There is some limitation to this. Say, for example that the title
contains mathematical symbols. One would be hard pressed not to include
dollar-sign delimiters and math syntax! Another example could be
"edition={second}" and &
ng \math{x^2} clearly states what it
is. TeX tradition aside, dollar signs make no sense here and you
have to manually match beginning and end. Braces are matched
automatically (probably depends on the editor as well).
\math{x²} states what it is. However \m{x²} is cryptic and, although
only tw
ce
>>> math should appear rather as displayed math.
>>
>> While I agree on that one, writing \math{x^2} clearly states what it
>> is. TeX tradition aside, dollar signs make no sense here and you
>> have to manually match beginning and end. Braces are matched
>>
s what it
is. TeX tradition aside, dollar signs make no sense here and you
have to manually match beginning and end. Braces are matched
automatically (probably depends on the editor as well).
Marco
___
If your qu
which one might want to have a reference
> math should appear rather as displayed math.
While I agree on that one, writing \math{x^2} clearly states what it
is. TeX tradition aside, dollar signs make no sense here and you
have to manually match beginning and end. Braces are matched
automat
Hi,
there are another things that need to be fixed with the database module.
1. The quotechar character appears in the output.
2. The \asciimode command is ignored.
\usemodule[database]
\define[2]\TestCommand
{Currency: #1, Value: #2 \par}
\startbuffer[testdata]
Euro,€ 100
Dollar,\$ 300
\useGNUPLOTgraphic[distr_simple_1]
The problem seems to be that the single dollar sign gets interpreted
as the start of a math environment. I tried to look through the source
code to see how I could tell context to bypass checking for certain
characters, but I couldn't figure it out.
Thanks for any hints!
Janne
(0.5*x) + 1)*exp(-0.4*x)
\stopGNUPLOTscript
\useGNUPLOTgraphic[distr_simple_1]
The problem seems to be that the single dollar sign gets interpreted
as the start of a math environment.
On one hand that is the intended default behaviour. It is very handy
to be able to use
plot (cos(2*x)*sin(0.5
using
(0.01*floor($1/0.01)):(0.870456/10/0.01) smooth frequency with
boxes, (cos(2*x)*sin(0.5*x) + 1)*exp(-0.4*x)
\stopGNUPLOTscript
\useGNUPLOTgraphic[distr_simple_1]
The problem seems to be that the single dollar sign gets interpreted
as the start of a math environment.
On one hand
);
// Raute/number sign
$xstring = str_replace ( $, \\char36, $xstring );
// Dollar-Zeichen/dollar sign
$xstring = str_replace ( %, \\char37, $xstring );
// Prozent-Zeichen/percent sign
$xstring = str_replace ( , \\char38, $xstring );
// Kaufmännisches Und/ampersand
$xstring
); // Raute/number
sign
$xstring = str_replace ( $, \\char36, $xstring ); //
Dollar-Zeichen/dollar sign
$xstring = str_replace ( %, \\char37, $xstring ); //
Prozent-Zeichen/percent sign
$xstring = str_replace ( , \\char38, $xstring ); // Kaufmännisches
Und/ampersand
$xstring = str_replace
); //
Ausrufungszeichen/ConvertToConteXt
$xstring = str_replace ( \, \\char34, $xstring ); //
Anführungszeichen/quotation mark
$xstring = str_replace ( #, \\char35, $xstring ); //
Raute/number sign
$xstring = str_replace ( $, \\char36, $xstring ); //
Dollar-Zeichen/dollar sign
$xstring
);
// Dollar-Zeichen/dollar sign
$xstring = str_replace ( %, {\\char37}, $xstring );
// Prozent-Zeichen/percent sign
$xstring = str_replace ( , {\\char38}, $xstring );
// Kaufmännisches Und/ampersand
$xstring = str_replace ( ', {\\char39}, $xstring );
// Apostroph/apostrophe
$xstring
}, $xstring ); //
Raute/number sign
$xstring = str_replace ( $, {\\char36}, $xstring ); //
Dollar-Zeichen/dollar sign
$xstring = str_replace ( %, {\\char37}, $xstring ); //
Prozent-Zeichen/percent sign
$xstring = str_replace ( , {\\char38}, $xstring ); //
Kaufmännisches Und
side-effects?
* You need to use \math{...} to go into math mode. $ will just give
a dollar.
* You need \startformula ... \stopformula to go into display math.
$$...$$ will just print dollars.
* _ in text mode will produce an underscore instead of an error. _
in math mode will work fine
for comment.
Am 26.10.2010 um 00:49 schrieb Philipp Gesang:
Hi Aditya, Steffen and others,
I was toying around with catcode tables too. Shouldn’t it suffice
to simply change % to ‘other’? This way you can keep the dollar
style math.
Philipp
···8
so that % does
not have its usual meaning. So, % is no longer a comment; it just typesets
percentage sign. You can get a comment using
\starthiding ... \stophiding.
Any known side-effects?
* You need to use \math{...} to go into math mode. $ will just give a
dollar.
* You need
command which end at the end of the line like a normal
comment, maybe this should be added to luatex (like we have \Ustartmath ...
\Ustopmath as alternative to $...$)
Any known side-effects?
* You need to use \math{...} to go into math mode. $ will just give a dollar.
There is also \formula
\math{...} to go into math mode. $ will just give
a dollar.
* You need \startformula ... \stopformula to go into display math.
$$...$$ will just print dollars.
* _ in text mode will produce an underscore instead of an error. _
in math mode will work fine. The same for ^.
* You need
Hello,
I was just about to send my book to press when I noticed the '£' appears
in my PDF as an italic dollar sign.
I looked it up in the archive and google. Have tried \pound and
\sterling -- nothing seems to work.
It's very strange, when I output the chapter's product separately from
On Wed, Oct 20, 2010 at 11:44, Elliot Clifton wrote:
Hello,
I was just about to send my book to press when I noticed the '£' appears in
my PDF as an italic dollar sign.
\language[en]
\mainlanguage[en]
\enableregime[utf-8]
I'm using TeX Gyre fonts.
Any ideas?
Do you have a minimal
On 20-10-2010 11:44, Elliot Clifton wrote:
Hello,
I was just about to send my book to press when I noticed the '£' appears
in my PDF as an italic dollar sign.
I looked it up in the archive and google. Have tried \pound and
\sterling -- nothing seems to work.
It's very strange, when I output
to
-
\starttext
\startluacode
math.randomseed(os.time())
_=math.random()
\stopluacode
Encode your Name and Surname as a
\startluacode
local a = {'null-terminated', 'dollar-terminated', 'Pascal'}
context('%s string', a[math.random(1,3
Name and Surname as a
\startluacode
local a = {'null-terminated', 'dollar-terminated', 'Pascal'}
context('%s string', a[math.random(1,3)])
\stopluacode
\stoptext
-
How can I randomize this?
Hmm... which version are you using? I do get
(os.time())
\stopluacode
Encode your Name and Surname as a
\startluacode
local a = {'null-terminated', 'dollar-terminated', 'Pascal'}
context('%s string', a[math.random(1,3)])
\stopluacode
\stoptext
-
How can I randomize this?
Hmm
I get allways (10 times at least) the same result:
-
\starttext
\startluacode
math.randomseed(os.time())
\stopluacode
Encode your Name and Surname as a
\startluacode
local a = {'null-terminated', 'dollar-terminated
as a
\startluacode
local a = {'null-terminated', 'dollar-terminated', 'Pascal'}
context('%s string', a[math.random(1,3)])
\stopluacode
\stoptext
-
How can I randomize this?
ConTeXt saves the random value in the tuc file to get
a = {'null-terminated', 'dollar-terminated', 'Pascal'}
context('%s string', a[math.random(1,3)])
\stopluacode
\stoptext
-
How can I randomize this?
Hmm... which version are you using? I do get a ranom output each time.
Tested
Hallo,
I get allways (10 times at least) the same result:
-
\starttext
\startluacode
math.randomseed(os.time())
\stopluacode
Encode your Name and Surname as a
\startluacode
local a = {'null-terminated', 'dollar-terminated', 'Pascal
a = {'null-terminated', 'dollar-terminated', 'Pascal'}
context('%s string', a[math.random(1,3)])
\stopluacode
\stoptext
-
How can I randomize this?
ConTeXt saves the random value in the tuc file to get the same output in
each run
), [sin] = math.sin, …
But the $·$-construct is problematic. It do not work in display style
(\let\calcmath\displaycalcmath) and without the dollar-signs the placement and
the spacing are wrong.
Thank you for your elaboration.
Greetings
Andreas
On Mon, Feb 15 2010, Andreas Harder wrote:
But the $·$-construct is problematic. It do not work in display style
(\let\calcmath\displaycalcmath) and without the dollar-signs the placement
and the spacing are wrong.
I don't know, why · doesn't work, but you can try this:
local
Xan wrote:
En/na Hans Hagen ha escrit:
Xan wrote:
No, with the version line commented I get the same error:
i don't get that error so i need a smaller test file
Hans
I hope this serves you. Now I have another error. What fails???
you have a dollar wrong around
$G({\cal P
En/na Hans Hagen ha escrit:
Xan wrote:
En/na Hans Hagen ha escrit:
Xan wrote:
No, with the version line commented I get the same error:
i don't get that error so i need a smaller test file
Hans
I hope this serves you. Now I have another error. What fails???
you have a dollar wrong
Xan wrote:
But what's the wrong dollar Sorry but I don't see it.
you had %$ instead of $%
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
a clue on what is going on?
Not enough information for a good answer, but you should check to make
sure there are no problematic entries in the bbl file. Perhaps you added
a citation recently and now the bbl reader is confused because there is
an unrecognized macro or stray dollar sign, something
:
\startluacode
n = math.random(10,255)
m = math.random(10,255)
tex.print(string.format(%X, %X, n, m))
\stopluacode
Encode your Name and Surname as a
\startluacode
a = {'null-terminated', 'dollar-terminated', 'Pascal'}
tex.print( string.format('%s string.', a[math.random
instead of the ascii symbol, which is
not all that usable)
Then there are straightforward symbols like copyright, registered
and trademark;
The currencies (at least euro, dollar, pound, yen, but preferably
many more)
A set of itemization bullets and dashes (some fonts have square ones)
The 'text
Is there a way to put space between cells in a tabluate table?
\starttabulate[|p(6cm) |p(6cm)|]
\NC American Community Survey \NC Current Population Survey \NC\NR
\HL
\NC
All dollar values for income are adjusted to latest calendar year of estimates
using the Consumer Price Index for the date
{\dagger}
\definecharacter paragraphmark {\paragraph}
\definecharacter textellipsis {\ellipsis}
\definecharacter textminus {\minus}
\definecharacter ostroke{\oslash}
\definecharacter textdollar {\dollar}
Is there some context convention
%32 % /suppress in TeX text
/exclam % 33
/quotedbl % 34 % /quotedblright in TeX text
/numbersign % 35
/dollar % 36
/percent % 37
/ampersand %38
/quoteright % 39 % /quotesingle in ANSI
/parenleft %40
/parenright % 41
/asterisk % 42
/plus
%% \defineactivetoken 36 {} % DOLLAR SIGN
%% \defineactivetoken 37 {} % PERCENT SIGN
%% \defineactivetoken 38 {} % AMPERSAND
%% \defineactivetoken 39 {} % APOSTROPHE
%% \defineactivetoken 40 {} % LEFT PARENTHESIS
%% \defineactivetoken 41 {} % RIGHT PARENTHESIS
%% \defineactivetoken 42 {} % ASTERISK
The following has to be added to nath for spacing to work correctly:
\def\mathematics#1{\relax\ifmmode#1\else$#1$\fi}
adding it anywhere after
\def$#1${\@@dollar{#1}}
seems to work fine. The problem is that $ is redefined, but
\mathematics doesn't catch on so the spacing gets all messed up
7.4.5).
nath seems to have trouble with $$...$$-formulas. This file won't compile:
\usemodule[nath]
\starttext
\placeformula
$$a$$
\stoptext
Error message:
Runaway argument?
\@@dollar {\to \asciiB \ExpandBothAfter \doifincsnameelse \asciiA
\asciiB \ETC.
! File ended while scanning use
. This file won't compile:
\usemodule[nath]
\starttext
\placeformula
$$a$$
\stoptext
Error message:
Runaway argument?
\@@dollar {\to \asciiB \ExpandBothAfter \doifincsnameelse \asciiA
\asciiB \ETC.
! File ended while scanning use of \convertargument.
Replacing $$...$$ by \startformula...\stopformula
any sign. If I then use:
\setupoutput[pdftex]
\usetypescript[berry]
\usetypescript[modern]
\setupbodyfont[modern,10pt]
\starttext
Where has the pound $\pound$ sign gone
\stoptext
I end up with a dollar ($) sign.
So how can I get the good old British pound sign. (No I don't want to
convert
Hello Mark,
try this:
\setupoutput[pdftex]
\usetypescript[berry][ec]
\usetypescript[modern][ec]
\setupbodyfont[modern,10pt]
\starttext
Here is the pound \pound{} sign. And there the Dollar \$
\stoptext
Greetings,
Helmut
62 matches
Mail list logo